import {Service, action} from "adajs";
import HospitalcutList from "../../../../controls/lists/hospitalcut";

class LodgeService extends Service {
    defaultData() {
        return {
            title: "设置",
            list: {
                url: "/api/lgb/app/lgb/hospital/queryPage",
                // url: "/static/mock/hospital.json",
                method: "get",
                type: HospitalcutList,
                parameter: {
                    types: 1
                }
            }
        };
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }
}

export default LodgeService;